package com.virtualperson.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI ttsApiInfo() {
        return new OpenAPI()
                .info(new Info()
                        .title("语音合成服务 API")
                        .description("提供文本转语音的REST API接口，支持流式合成和同步合成两种模式")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("Virtual Person Team")
                                .email("support@virtualperson.com")
                                .url("https://www.virtualperson.com"))
                        .license(new License()
                                .name("Apache 2.0")
                                .url("https://www.apache.org/licenses/LICENSE-2.0")));
    }
} 